Array.prototype.reverse2 = function(){
    let arr = []
    const arr2 = this.concat()
    arr2.forEach((index,value)=>{
        console.log(arr2)
        arr.push(this.pop())
    })
    return arr
}
let arr = [12,3,4,5,6]
console.log(arr.reverse2())














